Amc 8 2023 Problem 12: Solution Walkthrough